package com.kaishengit.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.kaishengit.entity.Employee;
import com.kaishengit.util.RowMapper;

public class EmployeeRowMapper implements RowMapper<Employee>{

	public Employee mapperRow(ResultSet rs) throws SQLException {
		Employee employee = new Employee();
		employee.setId(rs.getString("id"));
		employee.setUserName(rs.getString("userName"));
		employee.setPassword(rs.getString("password"));
		return employee;
	}

}
